<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>商品浏览</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
		<script src="${pageContext.request.contextPath}/js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="${pageContext.request.contextPath}/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!-- 头部 -->
		<jsp:include page="header.jsp"></jsp:include>

		<!-- 导航搜索栏 -->
		<jsp:include page="navigation.jsp"></jsp:include>
		
		<!-- 商品分类区域 -->
		<div class="container-fluid">
			<jsp:include page="category-list.jsp"></jsp:include>
			
			<div class="col-xs-1"></div>
			
			<div class="col-xs-4" style="height:500px;border:1px solid gray;border-radius: 8px;">
				<h2>新品推荐</h2>
				<!-- 新品展示信息 -->
				<c:forEach items="${newProduct}" var="product">
						<div class="container" style="margin-top: 10px;">
					<div class="col-xs-1">
						<img src="${pageContext.request.contextPath}/img/background.jpg" style="width: 60px;height: 60px;">
					</div>
					<div class="col-xs-3" style="height: 60px;">
						<a href="${pageContext.request.contextPath}/product/user-findById.do?productId=${product.productId}" style="color: #666666;font-size:10px">${product.productName}&nbsp;&nbsp; ${product.productDesc}</a>
						<span class="col-xs-offset-9" style="color: #E43947;font-size:10px">${product.price}</span>
					</div>
					
				</div>
				</c:forEach>
			</div>
			<div class="col-xs-1"></div>
			
			<!-- 低价促销 -->
			<div class="col-xs-4" style="height:500px;border:1px solid gray;border-radius: 8px;">
				<h2>低价促销</h2>
				<!-- 低价促销信息 -->
				<c:forEach items="${commendProduct}" var="product">
						<div class="container" style="margin-top: 10px;">
					<div class="col-xs-1">
						<img src="${pageContext.request.contextPath}/img/background.jpg" style="width: 60px;height: 60px;">
					</div>
					<div class="col-xs-3" style="height: 60px;">
						<a href="${pageContext.request.contextPath}/product/user-findById.do?productId=${product.productId}" style="color: #666666;font-size:10px">${product.productName}&nbsp;&nbsp; ${product.productDesc}</a>
						<span class="col-xs-offset-9" style="color: #E43947;font-size:10px">${product.price}</span>
					</div>
				</div>
				</c:forEach>
			</div>
		</div>
	</body>
</html>
